interface ArticleInterface<B,C>{
    title: string,
    isLock:B,
    comment:C[]
}

type CommentType = {
    comment:string,
    author:string
};

const article: ArticleInterface<boolean,CommentType> = {
    title: "typeScript",
    isLock:true,
    comment:[{comment:"第一条评论",author:"路人甲"},{comment:"第二条评论",author:"路人乙"}]
};
console.log(article);